package org.leviatan.definator.core.model.impl;

import org.leviatan.definator.core.model.Field;

public class FieldImpl implements Field {
	
	private static final long serialVersionUID = -917648789260416209L;
	private String id;
	private String recordRef;
	private Object data;
	private int dataLenght;
	private String name;
	private String type;
	
	
	
	
	
	public String toString() {
		String str = "[definator-field]id: " + this.id + " name: " + this.name + " type: " + this.type;
		return str;
	}

	public Object getData() {
		return this.data;
	}

	public String getId() {
		return this.id;
	}

	public int getLength() {
		return this.dataLenght;
	}

	public String getName() {

		return this.name;
	}

	public String getType() {
		return this.type;
	}

	public void setData(Object aData) {
		this.data = aData;
	}

	public void setId(String aId) {
		this.id = aId;
	}

	public void setLength(int aLength) {
		this.dataLenght = aLength;
	}

	public void setName(String aName) {
		this.name = aName;
	}

	public void setType(String aType) {
		this.type = aType;
	}

	public String getRecordRef() {
		return this.recordRef;
	}

	public void setRecordRef(String aRef) {
		this.recordRef = aRef;
	}

}
